package com.rainbow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rainbow.entity.Position;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author rainbow
 **/
public interface PositionMapper extends BaseMapper<Position> {

    int addPos(@Param("pos") Position pos);

    Position getPosByName(String name);

    List<Position> getAllPos();

    int deletePosById(@Param("pids") String[] pids);

    int updatePosById(@Param("pos") Position position);
}
